#ifndef TABLECHANGE_H
#define TABLECHANGE_H

#include "Change/change.h"

class TableChange : public Change
{
public:
    TableChange(int newRev, int newUser, int newDoc, int newPos, int newRows, int newCols);
    TableChange(QByteArray bytes);		//create change from a byte array

    QByteArray toBytes();				//convert the change into a byte array

    int getRows() {return rows;}
    int getCols() {return cols;}

    void setRows(int newRows) {rows = newRows;}
    void setCols(int newCols) {cols = newCols;}

private:
    int rows;
    int cols;
};

#endif // TABLECHANGE_H
